package com.jason.demo.two

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.jason.demo.two.databinding.ActivitySimpleBinding
import com.jason.demo.two.model.GoodInfo
import com.jason.demo.two.model.UserInfo

/**
 * @description: SimpleActivity
 *
 * @author ChenBaoyang
 * @date 5/8/21 15:10
 */
class SimpleActivity : AppCompatActivity() {

    private lateinit var binding: ActivitySimpleBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = DataBindingUtil.setContentView(this, R.layout.activity_simple)
        val user = UserInfo("Chen-Nick", "324702319", "156598","123123")
        var good = GoodInfo()
        good.name = "购物卡"
        good.nick = "100购物卡"
        binding.user = user
        binding.good = good
    }
}